import sys

import qdarkstyle as qdarkstyle
from PyQt5.QtWidgets import QApplication, QWidget

from foreEnd.Admin.Admin import Ui_Form

data = {
    'id': '201',
    'name': '罗信',
    'password': 'roson123',
    'permission': 1
}

if __name__ == '__main__':
    app = QApplication(sys.argv)
    app.setStyleSheet(qdarkstyle.load_stylesheet_pyqt5())
    AdminWindow = QWidget()
    # data--当前管理员信息
    ui = Ui_Form(data)
    ui.setupUi(AdminWindow)
    AdminWindow.show()  # 显示窗口
    sys.exit(app.exec())
